package com.orphan.marketFront.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.orphan.marketFront.po.Deposit;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lucangtian
 * @since 2021-07-19
 */
@Repository
public interface DepositMapper extends BaseMapper<Deposit> {

    @Insert("insert into once_deposit (deposit_id,money,time)  values (#{depositId}, #{money}, #{time})")
    int savemoney(@Param("depositId") Long depositId, @Param("money") int money, @Param("time") String time);
}
